package com.clkj.zhonghui.pojo.topic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author jiarun
 * @date Tue Jul 16 14:50:48 CST 2024
 */
@ApiModel( value ="t_zh_topicComment" )
@Table( name ="t_zh_topicComment" )
public class TopicComment  implements Serializable {

    @Id
   	@Column(name = "comment_id",updatable = false )
	@ApiModelProperty( value="null")
	private Integer commentId;

	/**
	 * 评论内容
	 */
   	@Column(name = "comment_content" )
	@ApiModelProperty( value="评论内容")
	private String commentContent;

	/**
	 * 评论时间
	 */
   	@Column(name = "comment_date" )
	@ApiModelProperty( value="评论时间")
	private String commentDate;

   	@Column(name = "user_id" )
	@ApiModelProperty( value="null")
	private Integer userId;

	/**
	 * 0为文章评论 1为视频评论
	 */
   	@Column(name = "comment_flag" )
	@ApiModelProperty( value="0为文章评论 1为视频评论")
	private Integer commentFlag;

	/**
	 * 0为一楼评论，否则为回复评论的ID
	 */
   	@Column(name = "parent_id" )
	@ApiModelProperty( value="0为一楼评论，否则为回复评论的ID")
	private Integer parentId;

	/**
	 * 是否置顶 0否 1置顶
	 */
   	@Column(name = "topping" )
	@ApiModelProperty( value="是否置顶 0否 1置顶")
	private Integer topping;

    @Column(name = "topic_id" )
    @ApiModelProperty( value="文章ID")
    private Integer topicId;


    @Transient
    private String topicName;


    @Transient
    private String userName;

    @Transient
    private String userImg;


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }


    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }



  public Integer getCommentId() {
    return commentId;
  }

  public void setCommentId(Integer commentId) {
    this.commentId = commentId;
  }


  public String getCommentContent() {
    return commentContent;
  }

  public void setCommentContent(String commentContent) {
    this.commentContent = commentContent;
  }


  public String getCommentDate() {
    return commentDate;
  }

  public void setCommentDate(String commentDate) {
    this.commentDate = commentDate;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getCommentFlag() {
    return commentFlag;
  }

  public void setCommentFlag(Integer commentFlag) {
    this.commentFlag = commentFlag;
  }


  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }


  public Integer getTopping() {
    return topping;
  }

  public void setTopping(Integer topping) {
    this.topping = topping;
  }

}
